      var currentFocus = 'menu_home';
      var keyStatus = 1;
      var mainStatus = 1;
      var submainPointId = 1;

      var historyGroup = '<?php echo $this->uri->segment(2);?>';
      var historyType = '<?php echo $this->uri->segment(3);?>';
      var historyPage = '<?php echo $this->uri->segment(4);?>';
      var historyOrder = '<?php echo $this->uri->segment(5);?>';
      var historyId = '<?php echo $this->uri->segment(6);?>';
      
      $(document).ready(function() {
         if (historyGroup == 'main') {
            loadContent(historyGroup, historyType, historyOrder);
         } else if (historyGroup == 'smain') {
            call_submain(historyType, historyPage, historyOrder);
         } else {
            loadContent('init');
         }
      });